<template>
	<view>
		<view class="margin_top ffffff">
			<view class="flexleft padding_top">
				<view class="line margin_right2"></view>
				<view class="sanshier xiaohei fonweight">紫微排盘</view>
			</view>
			<view class="mainpadding">
				<view class="flexbetween xiaohei titletext">
					<view>缘主姓名</view>
					<view>{{dataAll.base_info.name}}</view>
				</view>
				<view class="flexbetween xiaohei margin_top titletext">
					<view>出生公历</view>
					<view>{{dataAll.base_info.gongli}}</view>
				</view>
				<view class="flexbetween xiaohei margin_top titletext">
					<view>出生农历</view>
					<view>{{dataAll.base_info.nongli}}</view>
				</view>
				<view class="xiaohei margin_top titletext">
					<view>八字生辰：</view>
					<view>
						{{dataAll.detail_info.sizhu_info.year.tg}}{{dataAll.detail_info.sizhu_info.year.dz}}年({{dataAll.detail_info.sizhu_info.year.ny}})
						{{dataAll.detail_info.sizhu_info.month.tg}}{{dataAll.detail_info.sizhu_info.month.dz}}月({{dataAll.detail_info.sizhu_info.month.ny}})
						{{dataAll.detail_info.sizhu_info.day.tg}}{{dataAll.detail_info.sizhu_info.day.dz}}日({{dataAll.detail_info.sizhu_info.day.ny}})
						{{dataAll.detail_info.sizhu_info.hour.tg}}{{dataAll.detail_info.sizhu_info.hour.dz}}时({{dataAll.detail_info.sizhu_info.hour.ny}})
					</view>
				</view>
				<view class="flexbetween xiaohei margin_top titletext">
					<view>星宿信息</view>
					<view>{{dataAll.base_info.xingxiu}}</view>
				</view>
				<view class="flexbetween xiaohei margin_top titletext">
					<view>年柱纳音</view>
					<view>{{dataAll.detail_info.sizhu_info.year.ny}}命</view>
				</view>
				<view class="flexbetween xiaohei margin_top titletext">
					<view>命卦信息</view>
					<view>{{dataAll.base_info.minggua.minggua_name}}卦({{dataAll.base_info.minggua.minggua_fangwei}})
					</view>
				</view>
				<view class="flexbetween xiaohei margin_top titletext">
					<view>生肖星座</view>
					<view>{{dataAll.base_info.shengxiao}}-{{dataAll.base_info.xingzuo}}</view>
				</view>
				<view class="flexbetween xiaohei margin_top titletext">
					<view>五行旺度</view>
					<view>{{dataAll.base_info.wuxing_wangdu}}</view>
				</view>
				<view class="flexbetween xiaohei margin_top titletext">
					<view>起运信息</view>
					<view>{{dataAll.base_info.qiyun}}</view>
				</view>
				<view class="flexbetween xiaohei margin_top titletext">
					<view>交运信息</view>
					<view>{{dataAll.base_info.tiangan_liuyi}}</view>
				</view>
				<view class="flexbetween xiaohei margin_top titletext">
					<view>天干留意</view>
					<view>{{dataAll.base_info.xingxiu}}</view>
				</view>
				<view class="flexbetween xiaohei margin_top titletext">
					<view>地支留意</view>
					<view>{{dataAll.base_info.dizhi_liuyi}}</view>
				</view>
				<view class="xiaohei margin_top titletext">
					<view>胎元命身：</view>
					<view>胎息:{{dataAll.base_info.taixi}}({{dataAll.base_info.taixi_nayin}})
						胎元:{{dataAll.base_info.taiyuan}}({{dataAll.base_info.taiyuan_nayin}})
						命宫:{{dataAll.base_info.minggong}}({{dataAll.base_info.minggong_nayin}})
						身宫:{{dataAll.base_info.shengong}}({{dataAll.base_info.shengong_nayin}}) </view>
				</view>
			</view>
		</view>
		<view class="margin_top ffffff">
			<view class="flexleft padding_top">
				<view class="line margin_right2"></view>
				<view class="sanshier xiaohei fonweight">喜用神分析</view>
			</view>
			<view class="mainpadding">
				<view class="xiaohui titletext">
					日主天干为【{{dataAll.base_info.xiyongshen.rizhu_tiangan}}】, 同类为【{{dataAll.base_info.xiyongshen.tonglei}}】, 异类为【{{dataAll.base_info.xiyongshen.yilei}}】 
					{{dataAll.base_info.xiyongshen.qiangruo}}, 以【{{dataAll.base_info.xiyongshen.xiyongshen}}】为喜用神
				</view>
				<view class="xiaohui titletext">
					阴阳参考：{{dataAll.base_info.xiyongshen.xiyongshen}}
				</view>
				<view class="xiaohui titletext">
					五行统计： {{dataAll.base_info.xiyongshen.jin_number}}金，{{dataAll.base_info.xiyongshen.mu_number}}木，{{dataAll.base_info.xiyongshen.shui_number}}水，
					{{dataAll.base_info.xiyongshen.huo_number}}火，{{dataAll.base_info.xiyongshen.tu_number}}土，自党：{{dataAll.base_info.xiyongshen.zidang}}，异党：{{dataAll.base_info.xiyongshen.yidang}}
				</view>
				<view class="xiaohui titletext">
					五行能量： 金：{{dataAll.base_info.xiyongshen.jin_score}}分，占比{{dataAll.base_info.xiyongshen.jin_score_percent}}， 木：{{dataAll.base_info.xiyongshen.mu_score}}分，
					占比{{dataAll.base_info.xiyongshen.mu_score_percent}}， 水：{{dataAll.base_info.xiyongshen.shui_score}}分，占比{{dataAll.base_info.xiyongshen.shui_score_percent}}， 
					火：{{dataAll.base_info.xiyongshen.huo_score}}分，占比{{dataAll.base_info.xiyongshen.huo_score_percent}}， 土：{{dataAll.base_info.xiyongshen.tu_score}}分，占比{{dataAll.base_info.xiyongshen.tu_score_percent}}
				</view>
			</view>
		</view>
		<view class="margin_top ffffff">
			<view class="flexleft padding_top">
				<view class="line margin_right2"></view>
				<view class="sanshier xiaohei fonweight">日柱论命</view>
			</view>
			<view class="mainpadding">
				<view class="xiaohui titletext">
					{{dataAll.detail_info.sizhu_info.sizhu_indication.xingge.rizhu}}
				</view>
			</view>
		</view>
		<view class="margin_top ffffff">
			<view class="flexleft padding_top">
				<view class="line margin_right2"></view>
				<view class="sanshier xiaohei fonweight">性格分析</view>
			</view>
			<view class="mainpadding">
				<view class="xiaohui titletext">
					{{dataAll.detail_info.sizhu_info.sizhu_indication.wuxing.detail_description}}
				</view>
			</view>
		</view>
		<view class="margin_top ffffff">
			<view class="flexleft padding_top">
				<view class="line margin_right2"></view>
				<view class="sanshier xiaohei fonweight">财运分析</view>
			</view>
			<view class="mainpadding">
				<view class="xiaohui titletext">
					{{dataAll.detail_info.sizhu_info.sizhu_indication.caiyun.sanshishu_caiyun.simple_desc}}  {{dataAll.detail_info.sizhu_info.sizhu_indication.caiyun.sanshishu_caiyun.detail_desc}}
				</view>
			</view>
		</view>
		<view class="margin_top ffffff">
			<view class="flexleft padding_top">
				<view class="line margin_right2"></view>
				<view class="sanshier xiaohei fonweight">姻缘分析</view>
			</view>
			<view class="mainpadding">
				<view class="xiaohui titletext">
					{{dataAll.detail_info.sizhu_info.sizhu_indication.yinyuan.sanshishu_yinyuan}}
				</view>
			</view>
		</view>
		<view class="margin_top ffffff">
			<view class="flexleft padding_top">
				<view class="line margin_right2"></view>
				<view class="sanshier xiaohei fonweight">运程分析</view>
			</view>
			<view class="mainpadding">
				<view class="xiaohui titletext">
					{{dataAll.detail_info.sizhu_info.sizhu_indication.chenggu.description}}
				</view>
			</view>
		</view>
		<view class="margin_top ffffff">
			<view class="flexleft padding_top">
				<view class="line margin_right2"></view>
				<view class="sanshier xiaohei fonweight">五行分析</view>
			</view>
			<view class="mainpadding">
				<view class="xiaohui titletext">
					{{dataAll.detail_info.sizhu_info.sizhu_indication.wuxing.detail_desc}}.  {{dataAll.detail_info.sizhu_info.sizhu_indication.wuxing.simple_description}}
				</view>
			</view>
		</view>
		<view class="margin_top ffffff">
			<view class="flexleft padding_top">
				<view class="line margin_right2"></view>
				<view class="sanshier xiaohei fonweight">命运分析</view>
			</view>
			<view class="mainpadding">
				<view class="xiaohui titletext">	
					{{dataAll.detail_info.sizhu_info.sizhu_indication.mingyun.sanshishu_mingyun}}
				</view>
			</view>
		</view>
		<view class="mainpadding margin_top6">
			<view class="bigbtn" @click="backpage">返回重测</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				dataAll: {}
			}
		},
		onLoad(options) {
			let data = JSON.parse(decodeURIComponent(options.msg));
			console.log(data);
			this.getDetail(data)
		},
		methods: {
			getDetail(data) {
				httpRequest.request(data.url, 'POST', data.data).then(res => {
					if(res.code==1){
						this.dataAll = res.data
					}else{
						httpRequest.toast(res.msg)
						setTimeout(()=>{
							uni.navigateBack(1)
						},1000)
					}
				}).catch(err => {})
			},
		}
	}
</script>

<style>

</style>